﻿using System.Runtime.Serialization;

namespace HCMS.Dtos.OAuth2
{
    /// <summary>
    /// OAuth 2.0 Token 信息
    /// </summary>
    [DataContract(Name = "appToken")]
    public class AppTokenDto
    {
        /// <summary>
        /// 获取到的凭证
        /// </summary>
        [DataMember(Name = "access_token")]
        public string AccessToken { get; set; } = string.Empty;

        /// <summary>
        /// 凭证有效时间。单位：秒
        /// </summary>
        [DataMember(Name = "expires_in")]
        public int ExpiresIn { get; set; }
    }
}
